package com.seanliao.nav.common.domain.dto;


import com.seanliao.nav.common.domain.dto.valid.Add;
import com.seanliao.nav.common.domain.dto.valid.Edit;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 权限dto
 *
 * @author Sean_Liao
 */
@Data
public class PermissionDTO {

    /* 权限id */
    @NotNull(groups = Edit.class)
    private Long id;

    /* 父级权限id */
    @NotNull(groups = Add.class)
    private Long pid;

    /* 权限名称 */
    @NotNull(groups = Add.class)
    private String name;

    /* 权限值 */
    @NotNull(groups = Add.class)
    private String code;

    /*图标*/
    private String icon;

    /* 权限类型 */
    @NotNull(groups = Add.class)
    private Integer type;

    /* 前端资源路径 */
    private String uri;

    /* 是否被禁用 */
    private Boolean isBan;

    /* 排序 */
    private Integer sort;
}
